package com.awonsome.common.core.constant;

/**
 * @author yangdejun
 * @date 2022/1/25 10:54
 */
public interface SecurityConstants {

    /**
     * 认证请求头 key
     */
    String AUTHORIZATION_KEY = "Authorization";

    String JWT_PREFIX = "Bearer ";

    /**
     * Basic 认证前缀
     */
    String BASIC_PREFIX = "Basic ";

    String JWT_PAYLOAD_KEY = "payload";

    /**
     * 权限类型
     */
    String GRANT_TYPE_KEY = "grant_type";

    /**
     * 客户端 ID
     */
    String CLIENT_ID_KEY = "client_id";

    /**
     * 刷新 token
     */
    String REFRESH_TOKEN_KEY = "refresh_token";

    /**
     * 认证方式
     */
    String AUTHENTICATION_METHOD = "authenticationMethod";
}
